package com.example.springbootrabbitmqproducer.config;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Version: V1.0
 */
@Component
public class MyListener {

    @RabbitListener(queues = "gg")
    public void myListerner(Message message){
        System.out.println("消费者接受到的消息"+message);
    }
}
